package com.hirsi.common.core.vo.param;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.xiaoymin.knife4j.annotations.ApiSort;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiSort(0)
@ApiModel("分页请求参数")
public class PageParam {

    @ApiModelProperty("当前页，默认1")
    private Integer current = 1;

    @ApiModelProperty(value = "页数量，默认10", position = 1)
    private Integer size = 10;

    public Page pager() {
        return new Page(current, size);
    }
}
